package com.stephen.redisdemo;

public class Son extends Father {

    private int i = test();

    private static int j = method();

    static {
        System.out.println("6");
    }

    Son() {
        System.out.println("7");
    }

    {
        System.out.println("8");
    }

    public int test() {
        System.out.println("9");
        return 1;
    }

    public static int method() {
        System.out.println("10");
        return 1;
    }

    public static void main(String[] args) {
        Son son1 = new Son(); // 1
        // 1
        // 6
        // 8
        // 7
        //
        System.out.println();
        Son son2 = new Son(); // 7
    }
}
